package com.jlkf.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jlkf.dao.ImageMapper;
import com.jlkf.service.ImageService;
import com.platform.server.response.response.pojo.ReturnData;

@Service
public class ImageServiceImpl implements ImageService {
	
	@Autowired
	private ImageMapper imageMapper;

	/**
	 * 首页轮播图
	 */
	@Override
	public ReturnData selectIndexImage(Integer type,Integer version) {
	    Map<String, Object> map = new HashMap<>();
	    map.put("type", type);
	    map.put("version", version);
		List<Map<String, Object>> lists = imageMapper.selectIndexImage(map);
		return new ReturnData(lists,200,"成功");
	}

}
